package com.spzx.order.service;

import java.util.List;
import java.util.Map;

import com.spzx.order.domain.OrderForm;
import com.spzx.order.domain.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 订单Service接口
 *
 * @author lee
 * @date 2024-07-23
 */
public interface IOrderInfoService extends IService<OrderInfo>
{

    /**
     * 查询订单列表
     *
     * @param orderInfo 订单
     * @return 订单集合
     */
    public List<OrderInfo> selectOrderInfoList(OrderInfo orderInfo);

    Map<String, Object> getTrade(Long userId);

    Long submitOrder(OrderForm orderForm);

    Map<String, Object> getOneTrade(Long userId, Long skuId);

    List<OrderInfo> getOrderInfoList(Long userId, Integer orderStatus);

    OrderInfo getOrderInfoById(Long orderId);
}
